<template>
  <div class="wrapLimit clx main">
    <div>
      <record ref="indexRecord" />
    </div>
  </div>
</template>
<script>
import record from './record.vue'

export default {
  name: 'ReportManagement',
  components: {
    record
  },

  data() {
    return {}
  },
  beforeRouteEnter(to, from, next) {
    next((vm) => {
      console.log(vm.$refs.indexRecord)
      // 处理语句，可以是 data 中的数据，也可以是 methods中的函数。vm 相当于 this
      vm.$refs.indexRecord.getList()
    })
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped></style>
